package com.csce.domain.entity.exam.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.osce.common.annotation.Excel;
import com.osce.common.core.entity.BaseEntity;
import lombok.*;

import java.util.Date;

/**
 * 考试记录对象 ex_exam_record
 *
 * @author zzx
 * @since 2023-08-10
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@Builder
@ToString
@EqualsAndHashCode(callSuper = true)
public class RecordExcelVo extends BaseEntity {


    /**
     * 用户编号
     */
    @Excel(name = "学生")
    private String nickName;

    /**
     * 考试主键
     */
    @Excel(name = "考试")
    private String examName;

    /**
     * 预约时间
     */
    @Excel(name = "预约考试时间", width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date appointDate;

    /**
     * 对题书
     */
    @Excel(name = "对题数")
    private Integer rightCount;

    /**
     * 得分
     */
    @Excel(name = "得分")
    private Double score;

    /**
     * 答题用时
     */
    @Excel(name = "答题用时")
    private String answerTime;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开始时间", dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", dateFormat = "yyyy-MM-dd")
    private Date endTime;

}
